#!/bin/sh 
#Example script: change mode of a file to 777
# End If Software 2003


#variable 1 is the argument from the caller: the file path
myerr=$(chmod 777 $1)
if ["$myerr" = ""]
then
#do nothing
echo ""
else
#return the error
#this will be displayed to the user together with the filename
echo $myerr
fi
